package com.zlt.service;

import com.zlt.dto.RoleDTO;
import com.zlt.dto.UserDTO;
import com.zlt.entity.Role;
import com.zlt.entity.User;

import java.util.List;

public interface UserService {

    /**
     * 获取用户名的id
     *
     * @param username 用户名
     * @return 用户id
     */
    String getUserUid(String username);

    boolean reg(UserDTO userDto);

    String login(UserDTO userDto);

    void login(String token);

    User selectUserByUsername(String username);

    User selectUserByEmail(String email);

    int updateRecruit(UserDTO userDTO);

    List<Role> selectRolesByUid(String uid);

    boolean setRole(RoleDTO roleDTO);


    Integer getRoleByUsername(String username);


    boolean applyToHr(String cname);

    boolean modify(UserDTO userDto);

    boolean modifyByEmail(UserDTO userDto);

//    User loginDo(UserDTO userDto);
}
